package com.fastjars.generator;

import com.fastjars.generator.plugin.GenMapperPlugin;
import org.mybatis.generator.api.ShellRunner;

/**
 * AppGenerator
 *
 * @author Brant Liu <br> 邮箱：<br>lbf1988@qq.com <br>日期：<br>2018/03/22
 * @version 1.0.0
 */
public class AppGenerator {
    public static void main(String[] args){
        generate();
    }

    public static void generate() {
        String config = GenMapperPlugin.class.getClassLoader().getResource("generatorConfig.xml").getFile();
        String[] arg = { "-configfile", config, "-overwrite" };
        ShellRunner.main(arg);
    }
}
